# -*- encoding:utf-8 -*-

'''
http monitor 
listen on 8089
receive http request 
forward http request to remote
record http request and http response
send http response to client
'''


import gevent
from gevent.server import StreamServer
from gevent.socket import create_connection, gethostbyname

class HttpProxy(StreamServer):
    def __init__(self, listener, dest, **kwargs):
        StreamServer.__init__(self, listener, **kwargs)
        self.dest = dest

    def handler(self, source, address):
        pass
